package com.cc.web.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.cc.infrastructure.special.dto.UserAllTypeDo;
import com.cc.infrastructure.db.UserAllTypeDb;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Timestamp;
import java.sql.Time;


@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("前端传递参数")
public class UserAllTypeVo {

  /**
   * id
   **/
  @ApiModelProperty("id")
  private String id;
  /**
   * 姓名
   **/
  @ApiModelProperty("姓名")
  private String name;
  /**
   * 年龄
   **/
  @ApiModelProperty("年龄")
  private Integer age;
  /**
   * 性别
   **/
  @ApiModelProperty("性别")
  private Boolean sex;
  /**
   * 身高
   **/
  @ApiModelProperty("身高")
  private Double height;
  /**
   * 体重
   **/
  @ApiModelProperty("体重")
  private Float weight;
  /**
   * 资金
   **/
  @ApiModelProperty("资金")
  private BigDecimal money;
  /**
   * 大数据
   **/
  @ApiModelProperty("大数据")
  private BigInteger dashuju;
  /**
   * 图片二进制
   **/
  @ApiModelProperty("图片二进制")
  private byte[] picture;
  /**
   * 生日
   **/
  @ApiModelProperty("生日")
  private Date birth;
  /**
   * 生日时间戳
   **/
  @ApiModelProperty("生日时间戳")
  private Timestamp birthStamp;
  /**
   * 生日time
   **/
  @ApiModelProperty("生日time")
  private Time birthTime;
  /**
   * json
   **/
  @ApiModelProperty("json")
  private String json;
  /**
   * 人物描述
   **/
  @ApiModelProperty("人物描述")
  private String description;
  /**
   * 人物描述_text
   **/
  @ApiModelProperty("人物描述_text")
  private String descriptionText;
  /**
   * 人物描述_tiny
   **/
  @ApiModelProperty("人物描述_tiny")
  private String descriptionTiny;
  /**
   *
   **/
  @ApiModelProperty("")
  private String otherTestByNullString;

  public static UserAllTypeVo convertUserAllTypeVoByUserAllTypeDo(UserAllTypeDo userAllTypeDo) {
    UserAllTypeVo useralltypevo = new UserAllTypeVo();
    useralltypevo.setId(userAllTypeDo.getId());
    useralltypevo.setName(userAllTypeDo.getName());
    useralltypevo.setAge(userAllTypeDo.getAge());
    useralltypevo.setSex(userAllTypeDo.getSex());
    useralltypevo.setHeight(userAllTypeDo.getHeight());
    useralltypevo.setWeight(userAllTypeDo.getWeight());
    useralltypevo.setMoney(userAllTypeDo.getMoney());
    useralltypevo.setDashuju(userAllTypeDo.getDashuju());
    useralltypevo.setPicture(userAllTypeDo.getPicture());
    useralltypevo.setBirth(userAllTypeDo.getBirth());
    useralltypevo.setBirthStamp(userAllTypeDo.getBirthStamp());
    useralltypevo.setBirthTime(userAllTypeDo.getBirthTime());
    useralltypevo.setJson(userAllTypeDo.getJson());
    useralltypevo.setDescription(userAllTypeDo.getDescription());
    useralltypevo.setDescriptionText(userAllTypeDo.getDescriptionText());
    useralltypevo.setDescriptionTiny(userAllTypeDo.getDescriptionTiny());
    useralltypevo.setOtherTestByNullString(userAllTypeDo.getOtherTestByNullString());
    return useralltypevo;
  }

  public static UserAllTypeVo convertUserAllTypeVoByUserAllTypeDo(UserAllTypeDb userAllTypeDb) {
    UserAllTypeVo useralltypevo = new UserAllTypeVo();
    useralltypevo.setId(userAllTypeDb.getId());
    useralltypevo.setName(userAllTypeDb.getName());
    useralltypevo.setAge(userAllTypeDb.getAge());
    useralltypevo.setSex(userAllTypeDb.getSex());
    useralltypevo.setHeight(userAllTypeDb.getHeight());
    useralltypevo.setWeight(userAllTypeDb.getWeight());
    useralltypevo.setMoney(userAllTypeDb.getMoney());
    useralltypevo.setDashuju(userAllTypeDb.getDashuju());
    useralltypevo.setPicture(userAllTypeDb.getPicture());
    useralltypevo.setBirth(userAllTypeDb.getBirth());
    useralltypevo.setBirthStamp(userAllTypeDb.getBirthStamp());
    useralltypevo.setBirthTime(userAllTypeDb.getBirthTime());
    useralltypevo.setJson(userAllTypeDb.getJson());
    useralltypevo.setDescription(userAllTypeDb.getDescription());
    useralltypevo.setDescriptionText(userAllTypeDb.getDescriptionText());
    useralltypevo.setDescriptionTiny(userAllTypeDb.getDescriptionTiny());
    useralltypevo.setOtherTestByNullString(userAllTypeDb.getOtherTestByNullString());
    return useralltypevo;
  }
}